﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ModelToDto.Managemen
{
    public class LoginUserDTO
    {
        public int? Id { get; set; }

        [Required(ErrorMessage = "请输入用户名")]
        [Display(Name = "用户名")]
        public string? Name { get; set; }

        [Display(Name = "密   码")]
        [Required(ErrorMessage = "请输入密码")]
        public string? Password { get; set; }

        [Display(Name = "验证码")]

        private string? _checkCode;

        public string? CheckCode
        {
            get { return _checkCode?.ToLower(); }
            set { _checkCode = value; }
        }
    }
}
